package com.google.code.puertorico.actors

import actors.Actor
import com.google.code.puertorico.adt.ChooseStrategyCardAction
import com.google.code.puertorico.{ActionSequence, BoardState}

object ProspectorActor extends Actor {
  def act() {
    loop {
      react {
        case ActionSequence(state, actions) => {
          val newState = state.activePlayerTakeGold(1);
          EndTurnActor ! ActionSequence(newState, ChooseStrategyCardAction(state.activeStrategyCard) :: actions);
        }
      }
    }
  }
}